package jp.sourceforge.akjrcp.text_douga.wizards.endroll;

import jp.sourceforge.akjrcp.text_douga.rcp.TextDougaView;

import org.eclipse.core.runtime.Platform;
import org.eclipse.jface.wizard.Wizard;
import org.eclipse.ui.PlatformUI;

public class EndrollWizard extends Wizard{

	public static final String TEMPLATE="endroll.template";
	@Override
	public boolean performFinish() {
		TextDougaView view=(TextDougaView) PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().findView(TextDougaView.ID);
		
		//TODO save it.
		view.setText(view.getText()+"\r\n"+page1.getText());
		return true;
	}
	TextInputPage page1;
	public void addPages()
    {
		page1=new TextInputPage("endroll.inputText");
		addPage(page1);
    }
}
